package com.task.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.task.entity.Chunk;
import com.task.util.ChunkResult;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Huzz
 * @since 2021-12-29
 */
public interface ChunkService extends IService<Chunk> {
    /**
     * 校验当前文件
     *
     * @return 秒传？续传？新传？
     */
    ChunkResult checkChunkState(Chunk chunk, HttpServletResponse response);

    /**
     * 上传文件
     *
     * @param chunk
     * @return
     */
    Integer uploadFile(Chunk chunk);

}
